import requests
import urllib.request

# pip install pillow

response = requests.get(r'http://www.baidu.com')
print(response.text.encode('utf-8'))

print('~' * 90)

response = urllib.request.urlopen("http://www.baidu.com")
html = response.read()
print(html)


"""
爬虫框架：
Scrapy  /   https://scrapy.org

Crawley     /       

PySpider


"""